﻿using System;
using System.Data;
using PPI.General;
using PPI.WebConsumer.PPI.Svc;


namespace PPI.WebConsumer
{
    public static class WVendor_Project
    {
        #region Query

        public static DataSet SelectData(Int32 Vendor_ProjectID)
        {
            ConfigReader _Reader = ConfigReader.GetInstance();
            PPI.Svc.Service1 svc = new Service1();
            return svc.DVendor_Project_SelectData(Vendor_ProjectID, _Reader.ConectionMode);
        
        }

        public static DataSet SelectAll()
        {
            ConfigReader _Reader = ConfigReader.GetInstance();
            PPI.Svc.Service1 svc = new Service1();
            return svc.DVendor_Project_SelectAll(_Reader.ConectionMode);
        }

        public static DataSet SelectAllIdName()
        {
            ConfigReader _Reader = ConfigReader.GetInstance();
            PPI.Svc.Service1 svc = new Service1();

            return svc.DVendor_Project_SelectAllIdName(_Reader.ConectionMode);
        }

        public static DataSet SelectAllIdNameByVendor(int vendorID)
        {
            ConfigReader _Reader = ConfigReader.GetInstance();
            PPI.Svc.Service1 svc = new Service1();
            return svc.DVendor_Project_SelectAllIdNameByVendor(vendorID, _Reader.ConectionMode);
        }



        #endregion
    }
}
